const menu = {
  "filedList": [
    {
      "filedCode": "id", "filedName": "ID", "type": "number", "items": [
        {"code": "id", "name": "ID值"}
      ]
    },
    {
      "filedCode": "code", "filedName": "编码", "type": "text", "items": [
        {"code": "code", "name": "编码值"}
      ]
    },
    {
      "filedCode": "name", "filedName": "名称", "type": "text", "items": [
        {"code": "name", "name": "名称值"}
      ]
    },
    {
      "filedCode": "isOpen", "filedName": "有效", "type": "switch", "items": [
        {"code": "isOpen", "name": "有效"}
      ]
    },
    {
      "filedCode": "group", "filedName": "分组", "type": "select", "keyFiled": "code", "valueFiled": "name",
      "options": "[{\"code\": \"0\", \"name\": \"否\", \"rs1\": \"123\"}, {\"code\": \"1\", \"name\": \"是\", \"rs1\": \"456\"}]",
      "items": [
        {"code": "group", "name": "分组值"}
      ]
    },
    {
      "filedCode": "type", "filedName": "类型", "type": "check", "keyFiled": "code", "valueFiled": "name",
      "options": "[{\"code\": \"0\", \"name\": \"否\", \"rs1\": \"123\"}, {\"code\": \"1\", \"name\": \"是\", \"rs1\": \"456\"}]",
      "items": [
        {"code": "type", "name": "类型值"}
      ]
    },
    {
      "filedCode": "dictionaryCode", "filedName": "数据字典", "type": "popup", "popupUrl": "/vue-admin-template/ik/frame/clist",
      "popupExpression": "{\"form.code\": \"code\", \"form.name\": \"name\"}",
      "valueExpression": "{\"code\": \"form.dictionaryCode\", \"name\": \"form.dictionaryName\"}",
      "items": [
        {"code": "dictionaryCode", "name": "数据字典"}
      ]
    },
    {
      "filedCode": "entryTime", "filedName": "创建时间", "type": "date", "items": [
        {"code": "StartEntryTime", "name": "开始创建时间"},
        {"code": "EndEntryTime", "name": "结束创建时间"}
      ]
    },
    {
      "filedCode": "updateTime", "filedName": "修改时间", "type": "datetime", "items": [
        {"code": "StartUpdateTime", "name": "开始创建时间"},
        {"code": "EndUpdateTime", "name": "结束创建时间"}
      ]
    }
  ]
}

module.exports = [
  {
    url: '/vue-admin-template/ik/frame/searcher',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          total: menu.length,
          items: menu
        }
      }
    }
  }
]
